<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//阅读如下代码，分析输出，并说明为什么。
			let x = 100;
			let y = 200;
			let funA = function(x) {
			    x += 1;//2.101＋1则为102
			    let y = 201;
			    let funB = function(){
			        console.log(x); // 102
			        console.log(y); // 201
			    }
			    return funB;//通过return将funB保存到外部，获取到x和y的值
			}
			let f = funA(101);
			//1.funA里的参数x的值为101
			f();
		</script>
	</body>
</html>
